package view.panels;

import javax.swing.JPanel;
import buttons.DirectionButton;
import buttons.PlayButton;
import buttons.TextInput;
import buttons.ZoomButton;
import controller.TurtleController;

@SuppressWarnings("serial")
public class BottomPanel extends JPanel
{
    TurtleController myController;

    public BottomPanel(TurtleController controller)
    {
        super();

        myController = controller;

        ZoomButton zoomIn = new ZoomButton("+", myController, 0.5);
        ZoomButton zoomOut = new ZoomButton("-", myController, 2);
        DirectionButton right = new DirectionButton("->", myController, -150, 0);
        DirectionButton left = new DirectionButton("<-", myController, 150, 0);
        DirectionButton down = new DirectionButton("v", myController, 0, -150);
        DirectionButton up = new DirectionButton("^", myController, 0, 150);
        TextInput textInput = new TextInput(myController);
        myController.setTextInput(textInput);
        PlayButton play = new PlayButton("Play", myController, textInput);

        // Add the tabbed pane to this panel.
        add(left.getInstance());
        add(up.getInstance());
        add(down.getInstance());
        add(right.getInstance());
        add(zoomIn.getInstance());
        add(zoomOut.getInstance());
        add(play.getInstance());
        add(textInput.getInstance());

    }
}
